package IO;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class FileDemo5 {
    public static void main(String[] args) throws IOException {
        Reader reader=new FileReader("d:/text.txt");
        while(true){
            int ch=reader.read();
            if(ch==-1){
                break;
            }
            System.out.println(""+(char)ch);
        }
        reader.close();
    }
}
